'use strict';
exports.main = async (event, context) => {
 //event为客户端上传的参数
 console.log('event : ', event)
 //获取数据库引用
 const db = uniCloud.database();
 //获取表的引用
 const tb = db.collection("picture");
 //一个给对象设置值的对象
 const dbCmd =db.command;
 // console.log(">>>>>>>>>>>>>>>>>>", event.type)
 //根据类型进行操作
 switch (event.type) {
 
 case"show":{    //查找轮播图并返回
  //查找
  let data = await tb.where({
  }).get()
  return {status:200,data:data}
 }
 };

};

